#include <QCoreApplication>
#include <iostream>
using namespace std;
int main()
{
 int A;
 float B,S;
 cout<<"Nomer=";
 cin>>A;
 cout<<"\nMassa=";
 cin>>B;
 switch (A) {
 case 1:
     S=B;
     break;
 case 2:
     S=B/1000000;
     break;
 case 3:
     S=B/1000;
     break;
 case 4:
     S=B*1000;
     break;
 case 5:
     S=B*100;
     break;
 default:
     break;
 }
     cout<<"V kilogg="<<S;
 return 0;
}
